/**

 @Name：用户管理
 @Author：xuqipeter
 @Site：http://blog.xuziyu.cn/
    
 */

layui.define(function (exports) {
  layui.use(['table', 'layer', 'm-utils', 'form', 'admin', 'view', 'CashModel'], function () {
    var $ = layui.$,
      table = layui.table,
      layer = layui.layer,
      admin = layui.admin,
      view = layui.view,
      form = layui.form,
      setter = layui.setter,
      baseUrl = setter.baseUrl,
      utils = layui['m-utils'],
      cashModel = layui.CashModel;

    form.render();
    var tableList = cashModel._tableList()
    /* search重载table */
    form.on('submit(js-btn-table-search)', function (data) {
      let field = data.field;
      tableList.reload({
        where: field
      });
      return false;
    });

  })

  exports('m-cash', {})
})